package cn.org.timespace.ons.service.base;

import java.util.List;

import cn.org.timespace.ons.action.base.AppleServerModel;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.AppleServer;
import cn.org.timespace.ons.vo.base.Options;



/*
 * 用户信息接口
 * author:ync
 */
public interface AppleServerService {
	
	//组合查询
	public List<AppleServer> findByCondition(AppleServerModel model);
	
	public List<Object> findByCondition(AppleServerModel model,Pager p);
	
	public List<Object> findByCondition(Pager p);
	
	public AppleServer findById(java.lang.String id) ;
	
	public void update(AppleServer instance);
	
	public void save(AppleServer transientInstance) ;

	public void delete(AppleServer persistentInstance) ;
	
	//根据用户账号查询用户
	public AppleServer findByCompCode(String compCode);
	
	public List<Options> findByCode(String code);
	
	
	
	//查找IP和端口是否被占用
	public AppleServer findByCondition(String IP,String port);
	
	public List<Object> findAppByCondition(String theidname[] ,Pager p);
	/**
	 * 验证当前登录用户的应用名称是否存在
	 * @param typeName
	 * @param efUser
	 * @return
	 */
	public boolean isExistByTypeName(String appleName,String userName);
}
